package com.asset.service.imp;

import com.asset.pojo.AssetUseHistory;
import com.asset.service.AssetUseHistoryService;
import com.asset.service.BaseService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AssetUseHistoryServiceImp extends BaseService implements AssetUseHistoryService {

    @Override
    public void addAssetHistory(AssetUseHistory assetUseHistory) {
        assetUseHistoryMapper.addHistory(assetUseHistory);
    }


    @Override
    public void updateAssetHistory(AssetUseHistory assetUseHistory) {
        assetUseHistoryMapper.updateHistory(assetUseHistory);
    }
    
	@Override
	public List<AssetUseHistory> getHistoryByKey(long assetid) {
		
		return   assetUseHistoryMapper.getHistoryByKey(assetid);
	}

	@Override
	public AssetUseHistory getHistoryBySign(int sign) {
		
		return assetUseHistoryMapper.getHistoryBySign(sign);
	}
	
	@Override
	public List<AssetUseHistory> listHistoryAll() {

		return assetUseHistoryMapper.listHistoryAll();
	}

	@Override
	public List<AssetUseHistory> listHistoryPage(Integer start, Integer end) {

		return assetUseHistoryMapper.listHistoryPage(start,end);
	}
}
